<form name="editForm" role="form" novalidate (ngSubmit)="save()" #editForm="ngForm">

    <div class="modal-header">
        <h4 class="modal-title" id="myRecordLabel" jhiTranslate="equipmentcheckApp.record.home.createOrEditLabel">Create or edit a Record</h4>
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true"
                (click)="clear()">&times;</button>
    </div>
    <div class="modal-body">
        <jhi-alert-error></jhi-alert-error>
        <!--
        <div class="form-group" [hidden]="!record.id">
            <label for="id" jhiTranslate="global.field.id">ID</label>
            <input type="text" class="form-control" id="id" name="id"
                   [(ngModel)]="record.id" readonly />
        </div>-->
        <div class="form-group">
            <label class="form-control-label" jhiTranslate="equipmentcheckApp.record.computerRoom" for="field_computerRoom">Computer Room</label>
            <input type="text" class="form-control" placeholder="请输入机房号" name="computerRoom" id="field_computerRoom"
                [(ngModel)]="record.computerRoom" />
        </div>
        <div class="form-group">
            <label class="form-control-label" jhiTranslate="equipmentcheckApp.record.computerCode" for="field_computerCode">Computer Code</label>
            <input type="text" class="form-control" placeholder="请输入编号" name="computerCode" id="field_computerCode"
                [(ngModel)]="record.computerCode" />
        </div>
        <div class="form-group">
            <label class="form-control-label" jhiTranslate="equipmentcheckApp.record.equipment" for="field_equipment">Equipment</label>
            <select class="form-control" placeholder="请选择设备" name="equipment" id="field_equipment" [(ngModel)]="record.equipment" >
                <option value="电脑" label="电脑" selected = "selected" >电脑</option>
                <option value="交换机" label="交换机">交换机</option>
                <option value="投影仪" label="投影仪">投影仪</option>
            </select>
        </div>
        <div class="form-group">
            <label class="form-control-label" jhiTranslate="equipmentcheckApp.record.describe" for="field_describe">Describe</label>
            <input type="text" class="form-control" placeholder="请输入故障描述" name="describe" id="field_describe"
                [(ngModel)]="record.describe" />
        </div>
        <div class="form-group">
            <label class="form-control-label" jhiTranslate="equipmentcheckApp.record.name" for="field_name">Name</label>
            <input type="text" class="form-control" placeholder="请输入姓名" name="name" id="field_name"
                [(ngModel)]="record.name" />
        </div>
        <div class="form-group">
            <label class="form-control-label" jhiTranslate="equipmentcheckApp.record.call" for="field_call">Call</label>
            <input type="text" class="form-control" placeholder="请输入联系方式" name="call" id="field_call"
                [(ngModel)]="record.call" />
        </div>
        <div class="form-group">
            <label class="form-control-label" jhiTranslate="equipmentcheckApp.record.dataTime" for="field_dataTime">Data Time</label>
            <div class="d-flex">
                <input id="field_dataTime" type="datetime-local" class="form-control" name="dataTime" [(ngModel)]="record.dataTime"
                />
            </div>
        </div>

    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal" (click)="clear()">
            <span class="fa fa-ban"></span>&nbsp;<span jhiTranslate="entity.action.cancel">Cancel</span>
        </button>
        <button type="submit" [disabled]="editForm.form.invalid || isSaving" class="btn btn-primary">
            <span class="fa fa-save"></span>&nbsp;<span jhiTranslate="entity.action.save">Save</span>
        </button>
    </div>
</form>

